Cleaning up a project

When deploying your Kanzi application, you can decrease the size of the kzb binary by including only items your application is using:

Deleting items not used in your project

When you complete your project, it is good practice to delete all resources and objects your project is not using. By doing so you reduce the amount of memory your application uses and you simplify your project's tree hierarchy.

To delete objects your project is not using:

  1. In the Project right-click the root of your project and select Delete Unreferenced Items.
    If there are unreferenced items in your project, Kanzi Studio lists them in the Delete Unreferenced Items window.
  2. Select the checkbox next to each item you want to delete and click OK.
    To prevent listing meshes and animations you access through the code of your application, add property Is Used By Code to each such object.

Excluding items from applications

If your project does not use a resource or object, you can optimize the size of your Kanzi application by excluding such items. If you are working with profiles, you can exclude selected items from only selected profiles. See Profiles.

To exclude an item from an application:

  1. Select the item in the Project or Library.
  2. In the Properties click Add Properties, add Disable KZB Export property and enable it.
    If you disable an object or resource used by another object or resource which is not disabled, your application will not work. For example, disabling a mesh data resource used by more than one mesh object.

See also

Best practices

Profiles

Projects